<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>Hello World!</title>
    <link href="../css/mine.css" type="text/css" rel="stylesheet" />
    <script type="text/javascript">
        function  tosub() {
            //设置隐藏域的值
            document.getElementById("mymethod").value="delete";
            //提交表单
            //  document.getElementById("myform").submit();
            document.forms[1].submit();
        }
        function todaochu(){
            //设置隐藏域的值
            document.getElementById("mymethod").value="daochu";
            //提交表单
            //  document.getElementById("myform").submit();
            document.forms[1].submit();
        }
    </script>
</head>
<body>
<style>
    .tr_color{background-color: #9F88FF}
</style>
<div class="div_head">
            <span>
                <span style="float: left;">当前位置是：系统管理-》用户管理</span>
                <span style="float: right; margin-right: 8px; font-weight: bold;">
                    <span onclick="todaochu()" style="color: blue; cursor: pointer">【导出数据】</span>
                    <a style="text-decoration: none;" href="/add.html">【添加】</a></span>
					<span onclick="tosub()" style="color: blue; cursor: pointer">【删除】</span>
                </span>
            </span>
</div>
<div></div>
<div class="div_search">
            <span>
                <form action="/findallrz" method="post">
					<input type="text" name="jgname" value="${jgname}"  />
					 机构类型:
					<input type="text" name="jglx"  value="${jglx}" />
                    <input value="查询" type="submit" />
                </form>
            </span>
</div>
<div style="font-size: 13px; margin: 10px 5px;">
    <form  id="myform" action="/deleterzs" method="post">
        <input type="hidden" name="method" id="mymethod">
        <table class="table_a" border="1" width="100%">
            <tbody>
            <tr style="font-weight: bold;">
                <td width="30px;"><input type="checkbox" /></td>
                <td width="70px;">编号</td>
                <td width="70px;">机构名称</td>
                <td width="70px;">机构类型</td>
                <td width="70px;">日志所属人</td>
                <td width="70px;">日志负责人</td>
                <td width="70px;">日志联系人</td>
                <td width="70px;">日志日期</td>
                <td width="70px;">日志等级</td>
                <td align="center" width="80px;">操作</td>
            </tr>
            <#list pi.list as rz>
                <tr id="product1">
                    <td><input type="checkbox"  name="rzid" value="${rz.rzid?c}"/></td>
                    <td>${rz.rzid?c}</td>
                    <td>${rz.jgname}</td>
                    <td>${rz.jglx}</a></td>
                    <td>${rz.rzssr}</td>
                    <td>${rz.fzr}</td>
                    <td>${rz.lxr.lxrname}</td>
                    <td>${rz.rzdate?date}</td>
                    <td>${rz.rzdj}</td>
                    <td>
                        <a href="/findbyrzid?rzid=${rz.rzid?c}">修改</a>
                        <a href="/deleterz?rzid=${rz.rzid?c}">删除</a>
                    </td>
                </tr>
            </#list>

            <tr>
                <td colspan="20" style="text-align: center;">
                    <a style="text-decoration: none;" href="/findallrz?jgname=${jgname}&jglx=${jglx}">首页</a>
                    <#if pi.hasPreviousPage>
                    <a style="text-decoration: none;" href="/findallrz?index=${pi.prePage}&jgname=${jgname}&jglx=${jglx}">上一页</a>
                    </#if>
                    <#if pi.hasNextPage>
                    <a style="text-decoration: none;" href="/findallrz?index=${pi.nextPage}&jgname=${jgname}&jglx=${jglx}">下一页</a>
                    <a style="text-decoration: none;" href="/findallrz?index=${pi.pages}&jgname=${jgname}&jglx=${jglx}">尾页</a>
                    </#if>
                    共${pi.total}条  ${pi.pageNum}/${pi.pages}
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
</body>
</html>